CSS Full Course Day 4 [Hindi] πŸ’» | Text Styling πŸš€ | Mohit Decodes

✍️ CSS Tutorial – Day 4: Text Styling

Welcome to Day 4 of the CSS Full Course [Hindi] by Mohit Decodes! Today’s lesson focuses on Text Styling β€” how to beautifully style text elements using CSS.

πŸ”Ή Key CSS Properties for Text Styling

  1. color β€” Change text color
  2. font-family β€” Set font style (e.g., Arial, Verdana)
  3. font-size β€” Adjust size of text
  4. font-weight β€” Make text bold or light (normal, bold, lighter)
  5. font-style β€” Italicize text (normal, italic, oblique)
  6. text-decoration β€” Underline, overline, line-through
  7. text-transform β€” Change text case (uppercase, lowercase, capitalize)
  8. letter-spacing β€” Space between letters
  9. word-spacing β€” Space between words
  10. text-align β€” Align text (left, right, center, justify)
  11. line-height β€” Control spacing between lines

βš™οΈ Example CSS:

css
CopyEdit
p {
color: #333;
font-family: 'Arial', sans-serif;
font-size: 18px;
font-weight: bold;
font-style: italic;
text-decoration: underline;
text-transform: uppercase;
letter-spacing: 2px;
word-spacing: 5px;
text-align: center;
line-height: 1.5;
}

πŸ’‘ Tips:

  1. Combine multiple properties for rich text effects
  2. Use web-safe fonts or Google Fonts for better typography
  3. line-height improves readability by adjusting spacing between lines
  4. Use text-align: justify; to create clean blocks of text